﻿<%@ Page Title="Welcome to the Frontdesk Beta Sign-up!" Language="C#" MasterPageFile="~/Views/Shared/Frontdesk.Master"
    Inherits="System.Web.Mvc.ViewPage<Sendz.Domain.User>" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Welcome! You're almost ready to get started...</h2>
    <p class="justify">
        We're really glad that you are going to try Frontdesk. Frontdesk lets you collect
        data, send custom responses automatically, and learn what people are interested
        in... easily. We hope that you will find it easy and enjoyable to use. To get started,
        we just need a few very basic pieces of information, and then you will be on your
        way.</p>
    <% using (Ajax.BeginForm(new AjaxOptions { OnBegin = "onBegin", UpdateTargetId = "wrapper", InsertionMode = InsertionMode.Replace }))
       { %>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(u => u.Username)%>
        </div>
        <p>
            Please select a username that you will use to login to the system</p>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(u => u.Username)%>
        </div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(u => u.Username, new { @class = "frontdesk" })%>
        </div>
    </div>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(u => u.Password)%>
        </div>
        <p>
            Please select a memorable password (perhaps write it down?)</p>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(u => u.Password)%>
        </div>
        <div class="form-field-input">
            <%: Html.PasswordFor(u => u.Password, new { @class = "frontdesk-pw" })%>
        </div>
    </div>
    <div class="form-field">
        <div class="form-field-label">
            Confirm Your Password
        </div>
        <div class="form-field-input">
            <%: Html.Password("ConfirmPassword", null, new { @class = "frontdesk-pw" })%>
        </div>
    </div>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(u => u.Firstname)%>
        </div>
        <p>
            We don't need to know much about you to get started...!</p>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(u => u.Firstname)%>
        </div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(u => u.Firstname, new { @class = "frontdesk" })%>
        </div>
    </div>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(u => u.Lastname)%>
        </div>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(u => u.Lastname)%>
        </div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(u => u.Lastname, new { @class = "frontdesk" })%>
        </div>
    </div>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(u => u.Zipcode)%>
        </div>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(u => u.Zipcode)%>
        </div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(u => u.Zipcode, new { @class = "frontdesk" })%>
        </div>
    </div>
    <div class="buttons">
        <%: Html.Hidden("UserKey", Model.UserKey) %>
        <%: Html.Hidden("Email", Model.Email) %>
        <input type="submit" value="Save My Info & Start Using Frontdesk!" class="button" />
    </div>
    <% } %>
</asp:Content>
<asp:Content ContentPlaceHolderID="Sidebar" runat="server">
    <h2>
        Why Frontdesk?</h2>
    <p class="justify caption">
        Frondesk is a new web application, in a Beta "test" period, that allows easy data
        collection on the web.</p>
    <p class="justify caption">
        You can also reply automatically with personalized responses to all web requests.
        Frontdesk "acts human" and responds the right way.</p>
    <p class="justify caption">
        We hope that you will be able to use Frontdesk for a variety of reasons, but most
        of all, to create and keep customers.</p>
</asp:Content>
<asp:Content ContentPlaceHolderID="footer" runat="server">
</asp:Content>
